﻿using System;
using System.Web.UI;

using Ue.Extensions;

namespace Ue.Infrastructure.UI.SkinnedControls.PartAutoMappings
{
    public class MappingControlProvide : IMappingControlProvide
    {
        private readonly Control holder;

        public MappingControlProvide(Control holder)
        {
            holder.ArgumentNullExceptionByNullOrEmpty("holder");

            this.holder = holder;
        }

        public Control FindControl(string controlId)
        {
            return this.holder.FindControl(controlId);
        }
    }
}
